package org.example.passagerapi.controller;

import org.example.passagerapi.service.IFeignClient;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/webclient")
public class WebClientController {
    @Autowired
    private IFeignClient iFeignClient;
    @GetMapping("/test")
    public String test() {
        return iFeignClient.callPay();

    }

    @GetMapping("/test2")
    public String test2(String name) {
        return iFeignClient.callPay2(name);
    }

    @GetMapping("/test3")
    public String test3(String name) {
        return iFeignClient.callPay3(name);
    }
}
